package jvan.org.chapter5_2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class Chapter52Application {

	public static void main(String[] args) {
		SpringApplication.run(Chapter52Application.class, args);
	}

	//访问地址http://127.0.0.1:8080/
	@RequestMapping("/")
	String index(){
		return "hello spring boot";
	}
}
